package com.xnew.manager.elevator.detailRules.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xnew.manager.elevator.detailRules.entity.DetailRules;
import com.xnew.utils.DataInput;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author PuWeiHeng
 * @create 2022-10-25 15:10
 */
@Mapper
public interface DetailRulesMapper  extends BaseMapper<DetailRules> {

    /**
     * 新增
     * @author PuWeiHeng
     * @date 2022/10/25
     **/
    //int insert(DetailRules elDetailRules);

    /**
     * 刪除
     * @author PuWeiHeng
     * @date 2022/10/25
     **/
    int delete(int id);

    /**
     * 更新
     * @author PuWeiHeng
     * @date 2022/10/25
     **/
    int update(DetailRules elDetailRules);

    /**
     * 查询 根据主键 id 查询
     * @author PuWeiHeng
     * @date 2022/10/25
     **/
    DetailRules load(int id);

    /**
     * 查询 分页查询
     * @author PuWeiHeng
     * @date 2022/10/25
     **/
    List<DetailRules> pageList(int offset, int pagesize);

    /**
     * 查询 分页查询 count
     * @author PuWeiHeng
     * @date 2022/10/25
     **/
    int pageListCount(int offset,int pagesize);



    /**
     * @description: 维保细则集合
     * @author: PuWeiHeng
     * @date: 2022/10/25 16:31
     * @param:
     * @return:
    */
    List<DetailRules> queryDetailRuleList(DataInput dataInput);


}
